package com.explment.lens.controller;

import com.explment.lens.entity.SysMessageEntity;
import com.explment.lens.service.SysMessageService;
import org.springframework.web.bind.annotation.*;
import org.springframework.beans.factory.annotation.Autowired;
import com.explment.lens.utils.result.ResultData;
/**
 * 系统消息 controller
 */
@RestController
@RequestMapping("/sysMessageEntity")
public class SysMessageController {
    @Autowired
    private SysMessageService sysMessageEntityService;

    @GetMapping("/{id}")
    public ResultData getById(@PathVariable String id) {
        return ResultData.success(sysMessageEntityService.getById(id));
    }
}